|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.caucho.jsp.Page
Represents a compiled JSP page.
| Field Summary | |
protected boolean |
alwaysModified
|
protected java.lang.String |
contentType
|
protected static WriteStream |
dbg
|
protected boolean |
neverModified
|
| Constructor Summary | |
Page()
|
|
| Method Summary | |
protected void |
_caucho_addCacheDepend(Path path,
long lastModified,
long length)
Adds a single cache dependency. |
protected void |
_caucho_addDepend(Path path)
Adds a dependency to the page. |
protected void |
_caucho_addDepend(Path path,
long lastModified,
long length)
Adds a JSP source dependency. |
com.caucho.java.LineMap |
_caucho_getLineMap()
|
void |
_caucho_init(HttpServletRequest req,
HttpServletResponse res)
Initialize the response headers. |
boolean |
_caucho_isModified()
Returns true if the underlying source has been modified. |
long |
_caucho_lastModified()
The default Last-Modified time is just the most recently modified file. |
protected void |
_caucho_setAlwaysModified()
When called treats the JSP page as always modified, i.e. |
protected void |
_caucho_setCacheable()
Marks the page as cacheable. |
protected void |
_caucho_setContentType(java.lang.String contentType,
java.lang.String encoding)
|
protected void |
_caucho_setModified()
When called treats the JSP page as always modified, i.e. |
protected void |
_caucho_setNeverModified(boolean modified)
Set if the page is never modified. |
static long |
calculateLastModified(java.util.ArrayList depends,
java.util.ArrayList cacheDepends)
Calculate the last modified time for all the dependencies. |
boolean |
cauchoIsModified()
Returns true if the underlying source has been modified. |
void |
destroy()
Called by the servlet container to indicate to a servlet that the servlet is being taken out of service. |
java.lang.String |
getInitParameter(java.lang.String name)
Returns a String containing the value of the
named initialization parameter, or null if
the parameter does not exist. |
java.util.Enumeration |
getInitParameterNames()
Returns the names of the servlet's initialization parameters as an Enumeration of String objects,
or an empty Enumeration if the servlet has
no initialization parameters. |
long |
getLastModified(HttpServletRequest request)
Returns the Last-Modified time for use in caching. |
ServletConfig |
getServletConfig()
Returns this servlet's configuration. |
ServletContext |
getServletContext()
Returns a reference to the ServletContext in which the caller
is executing. |
java.lang.String |
getServletInfo()
Returns information about the servlet, such as author, version, and copyright. |
java.lang.String |
getServletName()
Returns the name of this servlet instance. |
void |
init(com.caucho.java.LineMap lineMap,
Path path)
|
void |
init(ServletConfig config)
Initialize the servlet. |
boolean |
isDead()
|
void |
log(java.lang.String msg)
|
void |
log(java.lang.String msg,
java.lang.Throwable cause)
|
void |
subservice(CauchoRequest req,
CauchoResponse res)
The extended service method creates JavaScript global variables from a property map. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.Servlet |
service |
| Field Detail |
protected static WriteStream dbg
protected java.lang.String contentType
protected boolean alwaysModified
protected boolean neverModified
| Constructor Detail |
public Page()
| Method Detail |
public void init(com.caucho.java.LineMap lineMap,
Path path)
throws ServletException
init in interface CauchoPage
protected void _caucho_setContentType(java.lang.String contentType,
java.lang.String encoding)
protected void _caucho_setAlwaysModified()
protected void _caucho_setModified()
protected void _caucho_setNeverModified(boolean modified)
protected void _caucho_addDepend(Path path)
path - the file the JSP page is dependent on.
protected void _caucho_addDepend(Path path,
long lastModified,
long length)
path - the path to the filelastModified - the last modified timelength - the length of the fileprotected void _caucho_setCacheable()
protected void _caucho_addCacheDepend(Path path,
long lastModified,
long length)
path - the path to the filelastModified - the last modified timelength - the length of the filepublic boolean _caucho_isModified()
_caucho_isModified in interface CauchoPagepublic boolean cauchoIsModified()
public void init(ServletConfig config)
throws ServletException
init in interface Servletjavax.servlet.Servletconfig - a ServletConfig object
containing the servlet's
configuration and initialization parametersServletException - if an exception has occurred that
interferes with the servlet's normal
operationUnavailableException,
Servlet.getServletConfig()public ServletContext getServletContext()
ServletConfigServletContext in which the caller
is executing.getServletContext in interface ServletConfigjavax.servlet.ServletConfigServletContext object, used
by the caller to interact with its servlet
containerServletContextpublic java.lang.String getServletName()
ServletConfiggetServletName in interface ServletConfigjavax.servlet.ServletConfigpublic java.lang.String getInitParameter(java.lang.String name)
ServletConfigString containing the value of the
named initialization parameter, or null if
the parameter does not exist.getInitParameter in interface ServletConfigjavax.servlet.ServletConfigname - a String specifying the name
of the initialization parameterString containing the value
of the initialization parameterpublic java.util.Enumeration getInitParameterNames()
ServletConfigEnumeration of String objects,
or an empty Enumeration if the servlet has
no initialization parameters.getInitParameterNames in interface ServletConfigjavax.servlet.ServletConfigEnumeration of String
objects containing the names of the servlet's
initialization parameterspublic void log(java.lang.String msg)
public void log(java.lang.String msg,
java.lang.Throwable cause)
public java.lang.String getServletInfo()
ServletThe string that this method returns should be plain text and not markup of any kind (such as HTML, XML, etc.).
getServletInfo in interface Servletjavax.servlet.ServletString containing servlet informationpublic ServletConfig getServletConfig()
getServletConfig in interface Servletjavax.servlet.ServletServletConfig object
that initializes this servletServlet.init(javax.servlet.ServletConfig)
public void _caucho_init(HttpServletRequest req,
HttpServletResponse res)
public long getLastModified(HttpServletRequest request)
public long _caucho_lastModified()
_caucho_lastModified in interface CauchoPage
public static long calculateLastModified(java.util.ArrayList depends,
java.util.ArrayList cacheDepends)
depends - list of the source file dependenciescacheDepends - list of the cache dependencies
public void subservice(CauchoRequest req,
CauchoResponse res)
throws java.io.IOException,
ServletException
This method only makes sense for JavaScript templates. To pass variables to Java templates, use the setAttribute() method of the request.
properties - hashmap of objects to create as JavaScript globals.public boolean isDead()
public com.caucho.java.LineMap _caucho_getLineMap()
_caucho_getLineMap in interface CauchoPagepublic void destroy()
Servletservice method have exited or after a timeout
period has passed. After the servlet container calls this
method, it will not call the service method again
on this servlet.
This method gives the servlet an opportunity to clean up any resources that are being held (for example, memory, file handles, threads) and make sure that any persistent state is synchronized with the servlet's current state in memory.
destroy in interface Servlet
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||